package com.hmkj.core.service.accountLog;

import com.hmkj.core.constant.Constant;
import com.hmkj.core.constant.Enum;
import com.hmkj.core.po.accountLog.PlatAccountLog;
import com.hmkj.core.service.base.GenericService;

import java.math.BigDecimal;

/**
 * 平台资金记录表业务相关Service接口<br>
 *
 * @ClassName: PlatAccountLogService
 * @author eproo
 * @date   2018-07-10 01:55:39
 */
public interface PlatAccountLogService extends GenericService<Integer, PlatAccountLog> {

    /**
     * 记录资金日志
     * @param total     总金额
     * @param amount    待操作金额
     * @param type      资金类型
     * @param direct    支出类型
     */
    void generateLog(BigDecimal total, BigDecimal amount, Enum.Direction direct, Constant.ACCOUNT_TYPE type)  throws Exception;
}
